import request from '@/utils/request'

// 查询跟进记录列表
export function listFollowRelation(query) {
    return request({
        url: '/system/follow/relation/list',
        method: 'get',
        params: query
    })
}

// 查询跟进记录详情 
export function getFollowRelation(followRelationId) {
    return request({
        url: '/system/follow/relation/' + followRelationId,
        method: 'get'
    })
}

// 新增跟进记录
export function addFollowRelation(data) {
    return request({
        url: '/system/follow/relation',
        method: 'post',
        data
    })
}

// 修改跟进记录 
export function updateFollowRelation(data) {
    return request({
        url: '/system/follow/relation',
        method: 'put',
        data
    })
}

// 删除跟进记录 
export function delFollowRelation(followRelationId) {
    return request({
        url: '/system/follow/relation/' + followRelationId,
        method: 'delete'
    })
}